
<?php if(is_search()):?><div class="copy"><h3 class="pagetitle">Search Results</h3></div><?php endif;?>
	
<?php if(is_single()){include(TEMPLATEPATH.'/_postnav.php');}?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
	<div class="postwrap">
		<div <?php post_class() ?> id="post-<?php the_ID(); ?>">	
			<div class="copy fix">
				<?php if(is_single() && pagelines('excerptshidesingle')):?>
				<?php else: ?>
					<?php if(VPRO):?>
					<?php $postimageurl = get_post_meta($post->ID, 'thumb', true); if ($postimageurl) { ?>
		            <div class="thumb left">
		              <a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><img src="<?php echo $postimageurl; ?>" alt="Post Pic" width="200" height="200" /></a>
		            </div>
					<?php } ?>
					<?php endif;?>
				<?php endif; ?>
				<div class="post-title">
					<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
				</div>
				<!--/post-title -->
				<div class="post-date"><em><?php _e('On');?> <?php the_time('m.d.y'); ?>, <?php _e('In');?> <?php the_category(', ') ?>, <?php _e('By');?> <?php the_author(); ?></em></div>
				<?php if(is_single() && pagelines('excerptshidesingle')):?>
				<?php else: ?>
				 	<?php if(!pagelines('excerptshide') && VPRO):?><div class="post-excerpt"><?php the_excerpt(); ?></div><?php endif;?>
				<?php endif; ?>
					
			</div>
			<?php  if(is_single() || !pagelines('excerpts') || !VPRO):?> 		
				<div class="copy">
					<div class="post-content">
						<?php the_content(); ?>
						<?php  if(is_single()) link_pages('<p><strong>Pages: </strong> ', '</p>', 'number'); ?>	
						<?php edit_post_link('Edit Post', '', '');?>
					</div>		
					<div class="tags">
					<?php the_tags('Tagged with: ',' &bull; ','<br />'); ?>&nbsp;
					</div>
	
				</div>
				<?php if(pagelines('authorinfo') && VPRO):?>
					<?php include(TEMPLATEPATH.'/_authorinfo.php');?>
				<?php endif;?>

			<?php endif;?>
				<div class="post-footer pfooterlight">
					<?php if(is_single() && VPRO):?>
						<div class="left"> <?php _e('If you enjoyed this article, please consider sharing it!');?></div>
						<div class="right">
							<a href="http://del.icio.us/post?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" title="Bookmark at Delicious" rel="nofollow" target="_blank"><img src="<?php echo IMAGE_FOLDER; ?>/ico-soc1.gif" alt="Delicious" /></a> 
							<a href="http://www.mixx.com/submit?page_url=<?php the_permalink() ?>" title="Bookmark at Mixx" rel="nofollow" target="_blank"><img src="<?php echo IMAGE_FOLDER; ?>/ico-soc2.gif" alt="Mixx" /></a> 
							<a href="http://www.stumbleupon.com/submit?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" title="Bookmark at StumbleUpon" rel="nofollow" target="_blank"><img src="<?php echo IMAGE_FOLDER; ?>/ico-soc3.gif" alt="StumbleUpon" /></a> 
							<a href="http://digg.com/submit?phase=2&url=<?php the_permalink() ?>&title=<?php the_title(); ?>" title="Bookmark at Digg" rel="nofollow" target="_blank"><img src="<?php echo IMAGE_FOLDER; ?>/ico-soc4.gif" alt="Digg" /></a> 
						</div>
					<?php else:?>
						<div class="left">
							<span><?php comments_number(0, 1, '%'); ?></span>
							<a href="<?php the_permalink(); ?>#comments" title="<?php _e('View Comments');?>"><?php _e('Comments');?></a>
						</div>
						<div class="right">
							<?php edit_post_link('Edit Post', '', ' | ');?><span><a href="<?php the_permalink(); ?>#respond" title="<?php _e('Leave A Response');?>"><?php _e('Leave A Response');?></a></span></div>
					<?php endif; ?>
					<div class="clear"></div>

				</div>
				<div class="hl"></div>
		</div><!--post -->
	</div>
		<?php if(is_single()):?>
			<?php include(TEMPLATEPATH.'/_commentsform.php');?>

		<?php endif; endwhile; ?>

	<?php include(TEMPLATEPATH.'/_pagination.php');?>
	
	
<?php else : ?>

	<h2 class="center"><?php _e('Nothing Found');?></h2>
	<p class="center"><?php _e('Sorry, what you are looking for isn\'t here.');?></p>
	<div class="center fix"><?php get_search_form(); ?></div>

<?php endif; ?>